﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DotSpatialExcelAddIn
{
    public partial class frmSelectDate : Form
    {
        addinRibbon rb;

        public addinRibbon Rb
        {
            get { return rb; }
            set { rb = value; }
        }
        public frmSelectDate()
        {
            InitializeComponent();
        }

        private void frmSelectDate_Load(object sender, EventArgs e)
        {
            dtpStartDate.Text = rb.txtStartDate.Text;
            dtpEndDate.Text = rb.txtEndDate.Text;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            rb.txtStartDate.Text = dtpStartDate.Text;
            rb.txtEndDate.Text = dtpEndDate.Text;
            this.Close(); 
        }
    }
}
